package com.fs.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "商品实体类")
public class Product implements Serializable {

    @ApiModelProperty("商品ID")
    private Long id;

    @ApiModelProperty("花名")
    private String name;

    @ApiModelProperty("种类")
    private String type;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("花语")
    private String language;

    @ApiModelProperty("状态：1=上架，0=下架")
    private Integer status;

    @ApiModelProperty("主图URL")
    private String image;

    @ApiModelProperty("商品介绍")
    private String intro;

    @ApiModelProperty("库存数量")
    private Integer stock;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
}
